From d7f7a6234b36a3ab64df46ff46319f22d9f9ff1a Mon Sep 17 00:00:00 2001 From: Brion VIBBER Date: Sun, 3 Jun 2012 11:00:54 +0000 Subject: [PATCH] Revert "Adding sanity check to Title::isRedirect()." This reverts commit 7d12b7b72c2060c58b6bd0759b80d985bb9431be --- includes/Title.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/includes/Title.php b/includes/Title.php index c470cb5a99..cf428f918b 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -2817,13 +2817,7 @@ class Title { return $this->mRedirect = false; } $linkCache = LinkCache::singleton(); - $cached = $linkCache->getGoodLinkFieldObj( $this, 'redirect' ); - - if ( $cached === null ) { # check the assumption that the cache actually knows about this title - throw new MWException( "LinkCache doesn't currently know about this title: " . $this->getPrefixedDBkey() ); - } - - $this->mRedirect = (bool)$cached; + $this->mRedirect = (bool)$linkCache->getGoodLinkFieldObj( $this, 'redirect' ); return $this->mRedirect; } -- 2.20.1